package com.xoa.service.schedule;

import com.xoa.model.schedule.ResultLeaderActivity;
import com.xoa.model.schedule.Schedule;
import com.xoa.model.schedule.ScheduleModel;
import com.xoa.util.ToJson;
import com.xoa.util.common.wrapper.BaseWrapper;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by gaosubo on 2017-10-07.
 */
public interface ScheduleService {
    /**
     * 保存领导活动安排
     * @param schedule
     * @return
     */

    public ToJson<ScheduleModel> saveSchedule(HttpServletRequest request, ScheduleModel schedule);

    /**
     * 提交领导活动安排
     * @param
     * @return
     */
    public ToJson<ScheduleModel> commitSchedule(int id);

    public ToJson<ResultLeaderActivity> queryLeaderActiveAll(HttpServletRequest request,ScheduleModel schedule,Integer page,Integer pageSize,boolean useFlag,String query);

    ToJson<ScheduleModel> updateSchedule(HttpServletRequest request, Schedule schedule);

    ToJson<ScheduleModel> selectScheduleById(HttpServletRequest request, Integer id);

    ToJson<ScheduleModel> deleteScheduleById(HttpServletRequest request, Integer id);

    ToJson<ResultLeaderActivity> queryLeaderActiveMe(ScheduleModel schedule,HttpServletRequest request);

    BaseWrapper deleteByids(String ids);
}
